<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="<%=basePath%>web/css/base.css" />
<script type="text/javascript"
	src="<%=basePath%>web/js/jquery-1.4.4.min.js"></script>
<script src="<%=basePath%>web/js/vanadium.js"></script>
<script src="<%=basePath%>web/js/regular.js"></script>

</head>
<body>


	<div id="d_head">
		<h1>Hi,${sessionScope.accountInfo.userID} </h1>
		<h2>		
			<span><a title="Log in" href="<%=basePath%>quit.action">Log out</a> </span>
			<span><a title="User Profile" href="<%=basePath%>listuser.action">User Profile</a> </span>
		</h2>
	</div>
	<div class="return"></div>
	<div id="demo">
		<form id="iform" action="com/signup.action" method="post">
			<fieldset>
				<legend style="font-size:20px">Please enter the information required.</legend>				
				<table align="center">
					<tr>
						<th>First Name:</th>
						<td><input type="text" name="firstname" class=":alpha :max_length;30"></input></td>
					</tr>
					<tr>
						<th>Last Name:</th>
						<td><input type="text" name="lastname" class=":alpha :max_length;30"></input></td>
					</tr>
					<tr>
						<th>Address1:</th>
						<td><input type="text" name="address1" class=":required :max_length;50"></input></td>
					</tr>
					<tr>
						<th>Address2:</th>
						<td><input type="text" name="adderss2" class=":max_length;50"></input></td>
					</tr>
					<tr>
						<th>City:</th>
						<td><input type="text" name="city" class=":required"></input></td>
					</tr>
					<tr>
						<th>State/Province:</th>
						<td><input type="text" name="province" class=":required"></input></td>
					</tr>
					<tr>
						<th>Zip/Post Code:</th>
						<td><input type="text" name="post" class=":alphanum :max_length;10"></input></td>
					</tr>
					<tr>
						<th>Country:</th>
						<td><input type="text" name="country"></input></td>
					</tr>
					<tr>
						<th>User Authority:</th>
						<td><select  name="authority">
								<option selected="selected" value="1">SuperUser</option>
								<option value="2">Administrator</option>
								<option value="3">Domestic Consumer</option>
						</select></td>
					</tr>
					<tr>
						<th>Title:</th>
						<td><input type="text" name="title" class=":alpha :max_length;20"></input></td>
					</tr>
					<tr>
						<th>User ID:</th>
						<td><input id="userid" type="text" name="userid" class=":required :alpha :max_length;10 :min_length;6 :ajax;userValiad.action"></input><span id="usertip"></span ></td>
					</tr>
					<tr>
						<th>Password:</th>
						<td><input id="checkpsw" type="password" name="password" class=":required :pass"></input></td>
					</tr>
					<tr>
						<th>Confirm Password:</th>
						<td><input type="password" name="repassword" class=":required :same_as;checkpsw"></input></td>
					</tr>
					
					<tr>
						<th></th>						
						<td><input style="width:80px" id="submit" type="submit" value="Submit"> 
						 <input style="width:80px" type="reset"
							value="Reset">
						</td>
					</tr>
				</table>
			</fieldset>
		</form>
	</div>
<div id="footer" class="pa tc pb5">E5 systems &copy;2012</div>
</body>

</html>